package com.movitech.mobile.cz.base.supplier.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.movitech.mobile.cz.base.common.util.CommonConstants;
import com.movitech.mobile.cz.base.supplier.entity.SSuppliersInspectionPerform;
import com.movitech.mobile.cz.base.supplier.mapper.SSuppliersInspectionPerformMapper;
import com.movitech.mobile.cz.base.supplier.service.SSuppliersInspectionPerformService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 供方考察报告-业绩复核 服务实现类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-08-31
 */
@Service
public class SSuppliersInspectionPerformServiceImpl extends ServiceImpl<SSuppliersInspectionPerformMapper, SSuppliersInspectionPerform> implements SSuppliersInspectionPerformService {

    @Override
    public List<SSuppliersInspectionPerform> selectByInspectId(String inspectId) {
        SSuppliersInspectionPerform where = new SSuppliersInspectionPerform();
        where.setSuppliersInspectionId(inspectId);
        where.setDelFlag(CommonConstants.DEL_FLAG_NORMAL);
        return selectList(new EntityWrapper<>(where));
    }
}
